<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>gugudan_result</title>
</head>
<body>
<h4>자바빈 없이</h4>
<%
	int dan = Integer.parseInt(request.getParameter("dan"));
	String gu= "<b>"+dan+"단 </b><br><br>";
	for(int a =1;a<10;a++){
		gu += dan+" x "+a+" = "+dan*a+"<br>"; 
	}


%>

<%=gu %>
<hr>
<h4>자바빈 사용</h4>

<jsp:useBean id="gugu" class="test.Gugudan" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="gugu"/>
<%=gugu.output1() %>


</body>
</html>